package acationspeedycasemymongo

const (
	ActionMatchEventIdSourceClientInfo      = 0    // 客户端信息
	ActionMatchEventIdSourceIntoGame        = 1    // 下场
	ActionMatchEventIdSourceChangeCloth     = 10   // 换装
	ActionMatchEventIdSourceEffectPlay      = 20   // 播放特效
	ActionMatchEventIdSourceTimeLinePrepase = 101  // TimeLine准备视频播放
	ActionMatchEventIdSourceTimeLineStart   = 102  // TimeLine开始视频播放
	ActionMatchEventIdSourceTimeLineEnd     = 103  // TimeLine结束视频播放
	ActionMatchEventIdSourceCPLink          = 1001 //  cp绑定
	ActionMatchEventIdSourceCPBreak         = 1002 //  cp解绑
	ActionMatchEventIdSourceCreateMatch     = 9000 //  创建模式的时候
)

type ActionMatchEventLogLogCases struct {
}

var ActionMatchEventLogLogCasesObject ActionMatchEventLogLogCases

func (e ActionMatchEventLogLogCases) SourceType() []int {
	return []int{
		ActionMatchEventIdSourceClientInfo,
		ActionMatchEventIdSourceIntoGame,
		ActionMatchEventIdSourceChangeCloth,
		ActionMatchEventIdSourceEffectPlay,
		ActionMatchEventIdSourceTimeLinePrepase,
		ActionMatchEventIdSourceTimeLineStart,
		ActionMatchEventIdSourceTimeLineEnd,
		ActionMatchEventIdSourceCPLink,
		ActionMatchEventIdSourceCPBreak,
		ActionMatchEventIdSourceCreateMatch,
	}
}

func (e ActionMatchEventLogLogCases) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range ActionMatchEventLogLogCasesObject.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e ActionMatchEventLogLogCases) SourceString(tag int) string {
	switch tag {
	case ActionMatchEventIdSourceClientInfo:
		return "客户端信息"
	case ActionMatchEventIdSourceIntoGame:
		return "下场"
	case ActionMatchEventIdSourceChangeCloth:
		return "换装"
	case ActionMatchEventIdSourceEffectPlay:
		return "播放特效"
	case ActionMatchEventIdSourceTimeLinePrepase:
		return "TimeLine准备视频播放"
	case ActionMatchEventIdSourceTimeLineStart:
		return "TimeLine开始视频播放"
	case ActionMatchEventIdSourceTimeLineEnd:
		return "TimeLine结束视频播放"
	case ActionMatchEventIdSourceCPLink:
		return "cp绑定"
	case ActionMatchEventIdSourceCPBreak:
		return "cp解绑"
	case ActionMatchEventIdSourceCreateMatch:
		return "创建模式的时候"
	default:
		return "其他"
	}
}
